package com.srv.persistence.impl;

import com.srv.model.TheBaseObj;
import com.srv.model.User;
import com.srv.persistence.IPersistence;
import com.srv.persistence.PersistenceException;
import com.srv.util.IDGenerator;

public abstract class DBPersistence implements IPersistence {

	public String getID() throws PersistenceException {		
		return IDGenerator.createID();
	}

	public String[] getIDArray(int counter) throws PersistenceException {
		return IDGenerator.createID(counter);
	}

	public abstract void save(TheBaseObj perObject) throws PersistenceException ;

	public abstract void del(User theOwner,String perObjectID) throws PersistenceException;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
